package com.lhyl.front.web.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lhyl.front.web.user.mapper.UserBankMapper;
import com.lhyl.front.web.user.model.UserBank;
import com.lhyl.front.web.user.service.UserBankService;

@Service
public class UserBankServiceImpl implements UserBankService
{
    @Autowired
    private UserBankMapper userBankMapper;
    
    public int deleteByPrimaryKey(Integer id)
    {
        return userBankMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserBank record)
    {
        return userBankMapper.insert(record);
    }

    public UserBank selectByPrimaryKey(Integer id)
    {
        return userBankMapper.selectByPrimaryKey(id);
    }

    public List<UserBank> selectByUserId(String userId)
    {
        return userBankMapper.selectByUserId(userId);
    }

    public int updateByPrimaryKey(UserBank record)
    {
        return userBankMapper.updateByPrimaryKey(record);
    }
    
    public UserBank selectByKeyAndUid(UserBank userBank)
    {
    	 return userBankMapper.selectByKeyAndUid(userBank);
    }

}
